
import '@kangc/v-md-editor/lib/style/base-editor.css';
import createCopyCodePreview from '@kangc/v-md-editor/lib/plugins/copy-code/preview';
import vuepressTheme from '@kangc/v-md-editor/lib/theme/vuepress.js';
import '@kangc/v-md-editor/lib/theme/style/vuepress.css';
import '@kangc/v-md-editor/lib/plugins/copy-code/copy-code.css';
import VMdPreviewHtml from '@kangc/v-md-editor/lib/preview-html';
import VueMarkdownEditor from '@kangc/v-md-editor';
import createCopyCodePlugin from '@kangc/v-md-editor/lib/plugins/copy-code/index';
import createLineNumbertPlugin from '@kangc/v-md-editor/lib/plugins/line-number/index';

VMdPreviewHtml.use(createCopyCodePreview());
import Prism from 'prismjs';

VueMarkdownEditor
    .use(vuepressTheme, {
        Prism,
        extend(md) {
            // md为 markdown-it 实例，可以在此处进行修改配置,并使用 plugin 进行语法扩展
            // md.set(option).use(plugin);
        },
    },)
    .use(createCopyCodePlugin())
    .use(createLineNumbertPlugin());

export {VMdPreviewHtml,VueMarkdownEditor}
